package pers.xiaojun.boot.module.system.controller.user.vo.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import pers.xiaojun.boot.common.enums.CommonStatusEnum;
import pers.xiaojun.boot.common.validation.constraints.InEnum;

/**
 * 用户状态更新实体
 *
 * @author xiaojun
 * @since 2025-11-07
 */
@Schema(description = "用户状态更新实体-VO")
@Data
public class UserStatusUpdateReqVO {

    @Schema(description = "用户编号", example = "1")
    private Long id;

    @Schema(description = "状态，参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    @InEnum(value = CommonStatusEnum.class, message = "状态必须为 {value}")
    private Integer status;

}
